All Questions
7 questions
1vote
2answers
2kviews
How may I replace a string in an XML file?
I am trying to replace the string inside an XML file. From <hello="value" exampleno="xxxx:yyyyyyyy/dd=eeeee-ffffff,aa=bb ccc,dd=eeee,ff=gggg,hh=iii,jj=kkk,ll=mmmm" /> I want ...
0votes
4answers
2kviews
how to remove New line character using Sed or perl [duplicate]
I have a huge file of XML data containing the lines like <fonts> some of the data </fonts> <fonts> some of the data </fonts> <fonts> some of the data </fonts> <...
1vote
1answer
2kviews
how to verify XML that include specific tags
is it possible to check by xmllint if xml include the follwing tags: Name uniq_String Version example of xml with three tags: <?xml version="1.0" encoding="UTF-8" ?> <!-- tasks configuration ...
0votes
2answers
933views
Extract part of the logs to other file
1) We have a process.log file in which we have lot of text data and in between we have some XML data published. 2) There of thousands of different XML published in the logs along with other text data. ...
4votes
1answer
1kviews
filter xml documents matching certains ids
Suppose you have a file containing many xml documents, like <a> <b> ... </a> in between xml documents there may be plain text log messages <x> ... </x> ... How ...
2votes
4answers
137views
How to append a line that does not start with '<' to the previous line
I have a log which contains XML lines. Sample format below: <head> <body> <line> asdasd</line> </body> </head> I want to scan the log file and ...
4votes
3answers
12kviews
Delete XML node containing certain element
I want to remove all Placemarks from a KML file that contain the element <tessellate>. The following block should be wholly removed: <Placemark> <styleUrl>#m_ylw-pushpin330</...